#!/bin/sh
###
 # @Author: jmdvirus ciyingjue@163.com
 # @Date: 2024-07-11 14:31:56
 # @LastEditors: jmdvirus ciyingjue@163.com
 # @LastEditTime: 2024-07-12 13:51:25
 # @FilePath: /ai/tovoc.sh
 # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
### 
###
 # @Author: jmdvirus ciyingjue@163.com
 # @Date: 2024-07-11 14:31:56
 # @LastEditors: jmdvirus ciyingjue@163.com
 # @LastEditTime: 2024-07-12 13:49:02
 # @FilePath: /ai/tovoc.sh
 # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
### 

# genereate label list
echo "generating label list"
listfile=release_data/labels_list.txt

echo "__ignore__" > $listfile
echo "_background_" >> $listfile
echo "jmd" >> $listfile
echo "lucy" >> $listfile
echo "yry" >> $listfile
echo "kina" >> $listfile
echo "ruihao" >> $listfile

dir=release_data
vocdir=$dir/tovoc
#rm -rf $vocdir
voc_file=/Users/v/Documents/proj/testdata/ai/labelme/examples/bbox_detection/labelme2voc.py
python $voc_file $dir/img_mark $vocdir --labels $listfile

